<?php
/**
 * +-------------------------------------------------------------
 * |Caption:
 * +-------------------------------------------------------------
 * |Author: Lenny
 * +-------------------------------------------------------------
 * |Email:  1685964109@qq.com
 * +-------------------------------------------------------------
 * |Date:   2024/6/17 下午3:24
 * +-------------------------------------------------------------
 */

namespace app\admin\controller;

use app\common\controller\AdminController;
use app\common\service\annotation\ControllerAnnotation;
use app\common\traits\LoginTrait;
use app\common\validate\LoginValidate;
use app\admin\model\GroupUser;

/**
 * @ControllerAnnotation (title="登录")
 */
class Login extends AdminController
{
    // 是否忽略验证登录(验证器中使用，类反射对象获取该属性)
    protected bool $ignoreAuth = true;

    use LoginTrait;

    public function initialize(): void
    {
        parent::initialize();
        $this->validateClass = LoginValidate::class;
        $this->model         = new GroupUser();
    }
}